package com.erp.gather.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 采集商品优化业务对象 erp_collect_product_optimize
 *
 * @author erp
 * @date 2023-03-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectProductOptimizeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标签id
     */
    @NotBlank(message = "标签id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tagIds;

    /**
     * 采集商品id
     */
    @NotNull(message = "采集商品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long collectProductId;

    /**
     * 被优化图片
     */
    @NotBlank(message = "被优化图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String optimizePic;

    /**
     * 优化后图片列表
     */
    @NotBlank(message = "优化后图片列表不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pics;

    /**
     * 优化后图片列表
     */
    @ExcelProperty(value = "类型")
    private Integer type;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
